package com.woniuxy.entity.dto.stationPile;

import com.github.pagehelper.PageInfo;
import com.woniuxy.entity.po.stationPile.Station;
import com.woniuxy.entity.po.stationPile.StationSchedule;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;
import java.util.List;

/**
 * 站点详情
 */
@Data
@NoArgsConstructor
public class StationDetailDTO {
    private Long id;
    private String stationName;
    private String stationNum;
    private Long stationTypeId;
    private String stationTypeValue;
    private String location;
    private BigDecimal longitude;
    private BigDecimal latitude;
    private Integer maxPiles;
    private Long userId;
    private String userName;
    private Integer stationCondition;
    private String phone;
    private String remark;

    private List<StationSchedule> schedules;
    private List<String> imgSrc;
    private PageInfo<PileSimpleDTO> piles;
//    private List<CostRulesDTO> costRules;
    public StationDetailDTO(Station station) {
        BeanUtils.copyProperties(station, this);
    }

    public StationDetailDTO(StationAddDTO stationAddDTO) {
        BeanUtils.copyProperties(stationAddDTO, this);
    }




}
